const http = uni.$u.http

// 获取场景列表
export const queryAppScene = (params, config = { header: { 'Content-Type': 'application/x-www-form-urlencoded' }, custom: { type: 'ycUrl' }}) => http.post('/store/appScene/queryAppScene', params, config)
// 搜索结果（商品列表）
export const searchMainQuery = (params, config = { custom: { type: 'ycUrl' }}) => http.post('/search/searchMainQuery', params, config)
// 热搜词，默认搜索词搜索
export const search_resource_conf = (params, config = { header: { 'Content-Type': 'application/x-www-form-urlencoded' }, custom: { type: 'ycUrl' }}) => http.post('/store/operation/search_resource_conf', params, config)
// 智能联想
export const keywordAutoTips = (params, config = { custom: { type: 'ycUrl' }}) => http.post('/search/keywordAutoTips', params, config)
// sku编码精确搜索
export const judgeSkuCode = (params, config = { custom: { type: 'ycUrl' }}) => http.post('/search/judgeSkuCode', params, config)
// 品牌列表
export const searchBrandPageQuery = (params, config = { custom: { type: 'ycUrl' }}) => http.post('/search/searchBrandPageQuery', params, config)
// 推荐品牌
export const selectFrontCategoryBrandLogoList = (params, config = { custom: { type: 'ycUrl' }}) => http.post('/store/operation/selectFrontCategoryBrandLogoList', params, config)
// 根据级别获取分类
export const listFirstDisplay = (params, config = { custom: { type: 'ycUrl' }}) => http.post('/store/category/listFirstDisplay', params, config)
// 根据一级分类获取子级分类
export const linkedShowCategory = (params, config = { custom: { type: 'ycUrl' }}) => http.post('/store/category/linkedShowCategory', params, config)
// 场景详情标签及子标签查询接口
export const searchMainSceneOrderBy = (params, config = { custom: { type: 'ycUrl' }}) => http.post('/store/frontScene/searchMainSceneOrderBy', params, config)
// 获取常购商品列表
export const regularpurchaseSelect = (params, config = { custom: { type: 'ycUrl' }}) => http.post('/order/regularpurchase/select', params, config)
//--场景商品
export const frontSceneSkuMsg = (params, config = { custom: { type: 'ycUrl' }}) => http.post('/ycstore/appStartScreen/frontSceneSkuMsg', params, config)
